<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>圣杯布局</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        #box{
            height: 100vh;
            display: flex;
            flex-direction: column;
        }
        #header{
            height: 100px;
            background-color: cyan;
        }
        #container{
            flex:1;
            background-color: pink;
            display: flex;
            flex-direction: row;
        }
        #side{
            width: 100px;
            background-color: #fff;
        }
        .main{
            flex: 1;
            background-color: orange;
            border: 1px solid black;
        }


    </style>
</head>
<body>
<div id="box">
    <div id="header"></div>
    <div id="container">
        <div id="side"></div>

        <div class="main"></div>
        <div class="main"></div>
    </div>

</div>
</body>
</html>
